<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
>

<head>
    <meta charset="UTF-8">
    <title>选课界面</title>
</head>
<body>
   <form method="post" th:action="@{/Student/Course}">
       <h1>学生选课界面</h1>
       <div th:each="course:${courses}">
           <input name="checkCourses" type="checkbox" th:value="${course.name}"/>
           <span th:text="${course.name}"></span><br>
       </div>
          <button>提交选课</button>
   </form>
</body>
</html>